package com.gym.code.generator.model.mapping.method;

import java.util.ArrayList;
import java.util.List;

import com.gym.code.config.admin.bean.method.MethodBaseMappingBean.MethodParameterCombineType;
import com.gym.code.generator.model.mapping.bean.BeanGenerateModel;
import com.gym.code.generator.model.mapping.field.ParameterFieldGenerateModel;

/**
 * 
 * @author xinchun.wang
 * @email: 532002108@qq.com
 * @createTime 2015-4-11 下午2:01:39
 */
public abstract class AbstractMethodGenerateModel {
	private String methodName;
	//private MethodOperateType methodOperateType;
	private List<ParameterFieldGenerateModel> parameterList;
	private MethodParameterCombineType methodParameterType = MethodParameterCombineType.fixedParamter;
	private BeanGenerateModel beanGenerateModel;

	public String getMethodName() {
		return methodName;
	}

	public void setMethodName(String methodName) {
		this.methodName = methodName;
	}

	/*public MethodOperateType getMethodOperateType() {
		return methodOperateType;
	}

	public void setMethodOperateType(MethodOperateType methodOperateType) {
		this.methodOperateType = methodOperateType;
	}*/

	public List<ParameterFieldGenerateModel> getParameterList() {
		if(parameterList == null){
			parameterList = new ArrayList<ParameterFieldGenerateModel>();
		}
		return parameterList;
	}


	public MethodParameterCombineType getMethodParameterType() {
		return methodParameterType;
	}

	public void setMethodParameterType(MethodParameterCombineType methodParameterType) {
		this.methodParameterType = methodParameterType;
	}

	public BeanGenerateModel getBeanGenerateModel() {
		return beanGenerateModel;
	}

	public void setBeanGenerateModel(BeanGenerateModel beanGenerateModel) {
		this.beanGenerateModel = beanGenerateModel;
	}

}
